package io.nutz.nutzsite.module.exam.models;

import io.nutz.nutzsite.common.base.BaseModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
								import java.util.Date;
		
/**
 * 发布的任务表 exam_taskpub
 * 
 * @author lrw
 * @date 2020-04-08
 */
@Table("exam_taskpub")
public class Taskpub extends BaseModel implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Name
	@Prev(els = {@EL("uuid()")})
		@Column("id")
	@Comment("任务编号")
	@ColDefine(type = ColType.VARCHAR, width = 64)
	private String id;

		/** 名称 */
	@Column("title")
	@Comment("名称")
	private String title;

		/** 简介 */
	@Column("intro")
	@Comment("简介")
	private String intro;

		/** 试卷编号 */
	@Column("pid")
	@Comment("试卷编号")
	private String pid;

		/** 任务类型1正式2模拟3自测 */
	@Column("kstype")
	@Comment("任务类型1正式2模拟3自测")
	private String kstype;

		/** 是否限制考场 */
	@Column("restip")
	@Comment("是否限制考场")
	private String restip;

		/** 是否统一交卷时间 */
	@Column("resttime")
	@Comment("是否统一交卷时间")
	private String resttime;

		/** 开始日期 */
	@Column("starttime")
	@Comment("开始日期")
	private Date starttime;

		/** 结束日期 */
	@Column("endtime")
	@Comment("结束日期")
	private Date endtime;

		/** 是否公开0不公开1公开 */
	@Column("status")
	@Comment("是否公开0不公开1公开")
	private String status;

		/** 发布任务者 */
	@Column("cruser")
	@Comment("发布任务者")
	private String cruser;

	
	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}

	public void setTitle(String title) 
	{
		this.title = title;
	}

	public String getTitle() 
	{
		return title;
	}

	public void setIntro(String intro) 
	{
		this.intro = intro;
	}

	public String getIntro() 
	{
		return intro;
	}

	public void setPid(String pid) 
	{
		this.pid = pid;
	}

	public String getPid() 
	{
		return pid;
	}

	public void setKstype(String kstype) 
	{
		this.kstype = kstype;
	}

	public String getKstype() 
	{
		return kstype;
	}

	public void setRestip(String restip) 
	{
		this.restip = restip;
	}

	public String getRestip() 
	{
		return restip;
	}

	public void setResttime(String resttime) 
	{
		this.resttime = resttime;
	}

	public String getResttime() 
	{
		return resttime;
	}

	public void setStarttime(Date starttime) 
	{
		this.starttime = starttime;
	}

	public Date getStarttime() 
	{
		return starttime;
	}

	public void setEndtime(Date endtime) 
	{
		this.endtime = endtime;
	}

	public Date getEndtime() 
	{
		return endtime;
	}

	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}

	public void setCruser(String cruser) 
	{
		this.cruser = cruser;
	}

	public String getCruser() 
	{
		return cruser;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("intro", getIntro())
            .append("pid", getPid())
            .append("kstype", getKstype())
            .append("restip", getRestip())
            .append("resttime", getResttime())
            .append("starttime", getStarttime())
            .append("endtime", getEndtime())
            .append("status", getStatus())
            .append("cruser", getCruser())
            .toString();
    }
}
